<!doctype html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
 String path = request.getContextPath();
 String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
	<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
	<%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
	<%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
	<script>
        var source = "${source}";
	</script>
	<script type="text/javascript" src="${path}/html/js/js-jsp/du/dustProCheckPoint/dustProCheckPointOption.js"></script>
</head>
	<body>
		<div class="place">
			<span>当前位置：</span>
			<ul class="placeul">
				<c:if test="${source == null}">
					<li><a href="${path}/dustProCheckPoint/index.do">扬尘配置</a></li>
				</c:if>
				<c:if test="${source != null && source == 'deviceManage'}">
					<li><a href="${path}/device/index.do" iconCls="${param.iconCls}" closable="true">设备管理</a></li>
				</c:if>
				<c:if test="${dustProCheckPoint.dpcpId == null}">
					<li><a>添加扬尘配置</a></li>
				</c:if>
				<c:if test="${dustProCheckPoint.dpcpId != null}">
					<li><a>修改扬尘配置</a></li>
				</c:if>
			</ul>
		</div>
		<form id="dustProCheckPoint_form" class="form" method="post" action="#">
			<div class="formbody">
				<div class="formtitle">
					<span>扬尘设备配置信息</span>
				</div>
				<input type="hidden" name="dpcpId" id="dpcpId" value="${dustProCheckPoint.dpcpId}" />
				<input type="hidden" name="prId" id="prId_" value="${dustProCheckPoint.prId}" />
				<ul class="forminfo">
					<li>
						<label>所属项目：</label>
						<input class="easyui-combobox" id="prId" editable="false" validType="selectNotEmpty['所属项目']"
							   style="width:225px; height: 32px" />
					</li>
					<li>
						<label>检测点名称：</label>
						<input class="easyui-textbox" type="text" name="dpcpName" value="${dustProCheckPoint.dpcpName}"
							   data-options="required:true,validType:'length[1,20]'" missingMessage="检测点名称不能为空" prompt="请输入检测点名称"  style="width: 225px;height: 32px">
					</li>
					<li>
						<label>设备编号：</label>
						<input class="easyui-textbox" type="text" name="deviceId" value="${dustProCheckPoint.deviceId}" style="width: 225px;height: 32px"
							   data-options="required:true,validType:'length[1,30]'" prompt="请输入设备编号" missingMessage="设备编号不能为空">
					</li>
					<li>
						<label>三方数据链接：</label>
						<input class="easyui-textbox" type="text" name="dataUrl" value="${dustProCheckPoint.dataUrl}" style="width: 225px;height: 32px"
							   data-options="validType:'length[1,100]'" prompt="请输入三方数据链接" >
					</li>
					<li>
						<label>在线状态：</label>
						<select class="easyui-combobox" name="onLineStatus"  value="${dustProCheckPoint.onLineStatus}" style="width: 225px;height: 32px" editable="false">
							<option value="1" selected="selected">在线</option>
							<option value="2">离线</option>
						</select>
					</li>
					<li>
						<label>布点经度：</label>
						<input class="easyui-numberbox" type="text" name="longitude" value="${dustProCheckPoint.longitude}" style="width: 225px;height: 32px"
							   data-options="precision:6" prompt="请输入布点经度" validType="longitude">
					</li>
					<li>
						<label>布点纬度：</label>
						<input class="easyui-numberbox" type="text" name="latitude" value="${dustProCheckPoint.latitude}" style="width: 225px;height: 32px"
							   data-options="precision:6" prompt="请输入布点纬度" validType="latitude">
					</li>
					<li>
						<label>布点位置：</label>
						<input class="easyui-textbox" type="text" name="distributLoc" data-options="multiline:true,validType:'length[1,100]'"
							   value="${dustProCheckPoint.distributLoc}" style="width: 225px;height:50px" prompt="请输入布点位置" >
					</li>
					<li>
						<label>描述：</label>
						<input class="easyui-textbox" name="description" data-options="multiline:true,validType:'length[1,200]'"
							   value="${dustProCheckPoint.description}" style="width:225px;height:100px" prompt="请输入描述">
					</li>
					<li>
						<label>备注信息：</label>
						<input class="easyui-textbox" name="remark" data-options="multiline:true,validType:'length[1,200]'"
							   value="${dustProCheckPoint.remark}" style="width:225px;height:100px" prompt="请输入备注信息">
					</li>
				</ul>
			</div>
		</form>
		<div class="formbody" style="margin-left: 110px">
			<a id="optionDustProCheckPoint" class="easyui-linkbutton c1" style="width:120px; height: 35px">保存</a>
			&nbsp;&nbsp;&nbsp;
			<c:if test="${source == null}">
				<a href="${path}/dustProCheckPoint/index.do" class="easyui-linkbutton c1" style="width:120px; height: 35px">取消</a>
			</c:if>
			<c:if test="${source != null && source == 'deviceManage'}">
				<a href="${path}/device/index.do" class="easyui-linkbutton c1" style="width:120px; height: 35px">取消</a>
			</c:if>
		</div>
	</body>
</html>